package cn.dnui_cr503.dnuifood_16110100503.service;

import java.util.List;

import cn.dnui_cr503.dnuifood_16110100503.bean.CollectStatus;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by chengrui on 2018/11/28.
 */

public interface CollectionService {

    @GET("isCollected.do")
    Call<CollectStatus> isCollected(
            @Query("user_id") String user_id,
            @Query("shop_food_id") String shop_food_id,
            @Query("flag") String flag
    );

    @GET("userCollectShop.do")
    Call<CollectStatus> userCollectShop(
            @Query("user_id")String user_id,
            @Query("shop_id")String shop_id
    );

    @GET("userCollectFood.do")
    Call<CollectStatus> userCollectFood(
            @Query("user_id")String user_id,
            @Query("food_id")String food_id
    );

    @GET("getAllUserCollection.do")
    Call<List<CollectStatus>> getAllUserCollection(
            @Query("user_id") String user_id,
            @Query("flag") String flag
    );

}
